import { RichText, View } from '@tarojs/components'
// import { useRouter } from '@tarojs/taro';
import { useRichStore } from '@/store/rich';
import './index.scss'

export default function RichTextView() {

  const { richContent } = useRichStore()
  
  // const router = useRouter();
  // const url = decodeURIComponent(router.params.url!)



  return (
    <View className='page bg-[#F5F5F5] min-h-screen pb-safe-offset-8 px-3'>
      <RichText className='rich' nodes={richContent || ''}></RichText>
    </View>
  )
}
